package com.blacktea.behavioralpatterns.templatemethodpattern;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @description: 银行卡付款
 * @author: black tea
 * @date: 2023/3/26 21:49
 */
@Component
@Slf4j
public class CreditCardPayment extends PaymentTemplate {

    @Override
    public void validate() {
        log.info("正在验证信用卡信息...");
    }

    @Override
    public void processPayment() {
        log.info("处理信用卡付款...");
    }
}
